#! -*- coding:utf-8 -*-

import pymongo
from pymongo import MongoClient
import jieba

print "hello"+"23"

conn = MongoClient("okzor.com",27017)
db = conn.health
db.authenticate("hou","hou@123")

content = db.training.find({})
dics=[]
dits={}
labels={}
count=1
mydoclist =[]




'''

str='（谢海春夫人）体胖少动，易疲劳，易气喘，左胸口时痛，心率快（服西药治疗心率控制，心率减慢），夜寐时呼噜声明显，咳嗽（2周，服甘草片缓减，停药则复），夜间明显，咽中有痰，痰黄，末次月经4月15日，平素月经常推后量少，需服西药中药催经，有胆囊结石病史，稍进食油腻则腹泻，习惯饮水多，饮水多则小便多，汗少，平素怕热。舌质淡暗有瘀斑有齿痕，苔薄润中根淡黄略厚，脉沉细。'

seg_list = jieba.cut(str, cut_all = True)
print "Full Mode:", ' '.join(seg_list)

seg_list = jieba.cut(str)
print "Default Mode:", ' '.join(seg_list)

seg_list = jieba.cut_for_search(str)
print "cut_for_search Mode:", ' '.join(seg_list)
'''